<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<script src="${ctx}/page/common/js/My97DatePicker/WdatePicker.js"></script>
</head>

<body>

	<form id="form_update_id"
		action="${ctx}/loginUser/update" method="post" class="form-horizontal" role="form">
		<input type="hidden" name="userInfo.id" value="${userInfo.id}" />
		<div class="row">
			<div id="vf_loadRight" class="col-sm-12">
				<div class="widget-box">
					<div class="widget-header">
						<h4>修改用户信息</h4>
					</div>

					<div class="widget-body">
						<div class="widget-main no-padding">
							<form>
								<!-- <legend>Form</legend> -->
								<br/>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1" for="userInfo.name">
										登录名
									</label>
									<div class="col-sm-9">
										<input type="text" id="userInfo.name" name="userInfo.name"
											value="${(userInfo.name)!}" placeholder="" disabled="disabled"
											class="col-xs-10 col-sm-5" />
										&nbsp;<i class="glyphicon glyphicon-asterisk red">&nbsp;${nameMsg!}</i>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										登录密码
									</label>
									<div class="col-sm-9">
										<input type="password" id="userInfopassword" name="userInfo.password"
											value="${(userInfo.password)!}" placeholder=""
											class="col-xs-10 col-sm-5" />
										&nbsp;<i class="glyphicon glyphicon-asterisk red">&nbsp;${passMsg!}</i>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="confirm_password">
										确认密码
									</label>
									<div class="col-sm-9" >
										<input type="password" id="confirm_password" name="confirm_password"
											value="${(userInfo.password)!}" placeholder=""
											class="col-xs-10 col-sm-5" />
											
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										姓名
									</label>
									<div class="col-sm-9">
										<input type="text" id="userInfo.username" name="userInfo.username"
											value="${(userInfo.username)!}" placeholder=""
											class="col-xs-10 col-sm-5" />
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										手机号
									</label>
									<div class="col-sm-9">
										<input type="text" id="userInfo.mobile" name="userInfo.mobile"
											value="${(userInfo.mobile)!}" placeholder=""
											class="col-xs-10 col-sm-5" />
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										帐号类型
									</label>
									<div class="col-sm-9">
										<select id="userInfo.manager" name="userInfo.manager" class="col-xs-10 col-sm-5" >
									        <#if userInfo.manager== '1'>
									        	<option value="${userInfo.manager}" selected="selected">管理员</option>
									        	<option value="${userInfo.manager}" >普通用户</option>
									        <#else>
									        	<option value="${userInfo.manager}" >管理员</option>
									    		<option value="${userInfo.manager}" selected="selected">普通用户</option>
									   		</#if>
										</select>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										QQ号
									</label>
									<div class="col-sm-9">
										<input type="text" id="form-field-1" name="userInfo.qq"
											value="${userInfo.qq!}" placeholder=""
											class="col-xs-10 col-sm-5" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right col-xs-1"
										for="form-field-1">
										收货地址
									</label>
									<div class="col-sm-9">
										<input type="text" id="form-field-1" name="userInfo.address"
											value="${userInfo.address!}" placeholder=""
											class="col-xs-10 col-sm-5" />
									</div>
								</div>
								
								<div class="clearfix form-actions center">
									<div class="col-md-offset-3 col-md-6">
										<button id="form_update_submit_btn" class="btn btn-sm btn-default btn-info" type="button">
											<i class="glyphicon glyphicon-ok bigger-110"></i>
											保存
										</button>
										&nbsp; &nbsp; &nbsp;
										<button class="btn btn-sm btn-default btn-info" type="reset">
											<i class="glyphicon glyphicon-repeat bigger-110"></i>
											重置
										</button>
										&nbsp; &nbsp; &nbsp; 
										<a href="${ctx}/loginUser/getUserList" class="btn btn-sm btn-default btn-info" type="button" openMode="rightPage"> 
										    <i class="glyphicon glyphicon-ok bigger-110"></i>
										    返回列表
										</a>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</body>
<script src="${ctx}/page/manager/user/js/user_update.js"></script>
</html>
